<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input id="c-newhouse_id" data-rule="required" name="row[newhouse_id]" type="hidden" value="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" data-source="newhouse/category/index" data-params="" class="form-control selectpage" name="row[category_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Salelabel_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-salelabel_ids" data-rule="required" data-source="newhouse/label/index" data-params='{"custom[type]":"1"}' data-multiple="true" class="form-control selectpage" name="row[salelabel_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fan')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fan" class="form-control" name="row[fan]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Building')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building" class="form-control" name="row[building]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Property_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-property_id" data-source="newhouse/property/index" data-field="title" class="form-control selectpage" name="row[property_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Propertyfee_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[propertyfee_json]">
                <dd>
                    <ins>0.00元/㎡/月</ins>
                    <ins>描述</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[propertyfee_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Propertytel_json')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[propertytel_json]">
                <dd>
                    <ins>电话</ins>
                    <ins>说明</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[propertytel_json]" class="form-control hide" cols="30" rows="5">{"":""}</textarea>
            </dl>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ambientlabel_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ambientlabel_ids" data-rule="required" data-source="newhouse/label/index" data-params='{"custom[type]":"0"}' data-multiple="true" class="form-control selectpage" name="row[ambientlabel_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-describe" class="form-control " rows="5" name="row[describe]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-cover_image" class="form-control" size="50" name="row[cover_image]" type="hidden">
                <div class="input-group-addon no-border no-padding">
                    <input id="c-cover_image_idx" class="form-control" data-rule="integer(+)" name="row[cover_image_idx]" type="number" value="1" style="margin-right: 5px;width: 50px;">
                    <span class="msg-box n-right" for="c-cover_image_idx"></span>
                </div>
                <span><button type="button" id="plupload-cover_image" class="btn btn-danger plupload" data-multipart={"module":"h/myimg","nocrop":"1"} data-input-id="c-cover_image" data-field="cover_image" data-maxcount="1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-cover_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-cover_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('3d_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-3d_image" class="form-control" size="50" name="row[3d_image]" type="hidden">
                <div class="input-group-addon no-border no-padding">
                    <input id="c-3d_image_idx" class="form-control" data-rule="integer(+)" name="row[3d_image_idx]" type="number" value="2" style="margin-right: 5px;width: 50px;">
                    <span class="msg-box n-right" for="c-3d_image_idx"></span>
                </div>
                <span><button type="button" id="plupload-3d_image" class="btn btn-danger plupload" data-multipart={"module":"h/myimg","nocrop":"1"} data-input-id="c-3d_image" data-field="3d_image" data-maxcount="1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-3d_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-3d_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-video_image" class="form-control" size="50" name="row[video_image]" type="hidden">
                <div class="input-group-addon no-border no-padding">
                    <input id="c-video_image_idx" class="form-control" data-rule="integer(+)" name="row[video_image_idx]" type="number" value="3" style="margin-right: 5px;width: 50px;">
                    <span class="msg-box n-right" for="c-video_image_idx"></span>
                </div>
                <span><button type="button" id="plupload-video_image" class="btn btn-danger plupload" data-multipart={"module":"h/myimg","nocrop":"1"} data-input-id="c-video_image" data-field="video_image" data-maxcount="1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-video_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-video_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-flag" class="form-control selectpicker" name="row[flag]">
                {foreach name="flagList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-price" class="form-control selectpicker" name="row[price]">
                {foreach name="priceList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" class="form-control" name="row[admin_id]" type="hidden" value="{:$auth->id}">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
